package com.hanfu.ucenter.web.web.vo;

import com.hanfu.ucenter.web.exception.ErrorCode;

import java.io.Serializable;

/**
 * admin users service
 * Created by DuFei on 2018/11/1.
 */
public class ClientResp<T> implements Serializable {
    private String msg;
    private String code;
    private T data;

    public ClientResp(T resultData) {
        this.code = ErrorCode.SUCCESS.getCode();
        this.msg = ErrorCode.SUCCESS.getTip();
        this.data = resultData;
    }

    public ClientResp(String resultCode, String resultDesc) {
        this.msg = resultDesc;
        this.code = String.valueOf(resultCode);
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
